This following registry setting will prevent writing to usb in windows xp
.
Follow this Step:
1) Goto -> Start menu -> press run -> type regedit
Find HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control
This following registry setting will prevent writing to usb in windows xp

Note: Giving a value of "0" will allow to write again.