Thanks for the tip!l Apparently this bug still exists in Yosemite.
After a disconnect mid write to a 64gb usb flash drive, i couldn't reformat or repartition the usb stick from osx and was getting the error: "Unable to write to the last block of the device"
Trying to read or write to the disk resulted in strange behaviors, files showing up instantly with wrong size, files not being able to be deleted, etc. Tried all the OSX based fixes suggested in this thread including recovery partition with no luck and obviously the firewire solution is not possible for a usb flash drive.
Finally tried repartitioning it from a windows 8.1 parallels vm, and it went smooth as butter and now works again. Was able to replicate the issue on a second usb flash drive by disconnecting mid write, exact same issues in osx, this time i repaired it in ubuntu using gparted. So I've verified that both those solutions fix the issue and this can easily happen to a perfectly fine working drive. Hope that helps future visitors with the same issue.