I've had this before. Here's some potential safety measures to keep this from happened.
- Don't randomly insert and insert out again the USB (This is how mine got corrupted, I'm guessing)
- Make sure you're getting your ROMs from trusted places. I recommend Vimm's Lair, I can't add the link but...