Look in Amherst or Snyder. Plenty of safe and nice housing options there, nice neighborhoods, close to stores, 7 - 15 min from school, and a large number of students live there (the majority of my class lived in Amherst). UB itself has grad student housing available on its North Campus and those townhouses are really nice.
There have been some threads with good info on this topic in the past, so look for them in the search.