Beat up your stupid friend with a baseball bat with the Memory card attached to it by a nail so your stupid friend will never be able to repeat that stupid mistake ever again. Or anything else for that matter.
Sorry, but there is nothing you can do about it other that to format the card and replay all the stuff back on to the card. Or do the above.