How to Fix That Problem
1 Check If Your Pen Drive & SD Have A Lock
2 And If your Pendrive & SD card don't Have Lock And showing this error. This mean its protected By by Some kind of Write protected Command. ( -_- )
How to Fix with Diskpart Utility
Open Command Prompt and type "diskpart" and press Enter key.
After opening diskpart type "list disk" and again press Enter button.
Now Select the disk "By typing Disk No" and press Enter key again.
Then type "attributes disk clear readonly" and hit Enter. This will remove write protect
Simply type "exit" and press enter key once more to exit the menu.
Now Go to Your Disk And try To Write Some File.
if format Didn't Start Then Download HP USB Disk Storage Format Tool