Additionally, I want to give you a trick (quick solution) as well, that really worked for me last time. Just plug this pen drive to your android phone and re-format the pen drive through your mobile phone. It should be reformatted that way.
I have a HP v165w 16 gb pen drive and suddenly all my files are corrupted. Tried formattting and cleaning but it said it has a write protection. Tried using Regedit and diskpart. My computer has no router so no internet.