I used to get very strange effects on some photos with digital cameras until I discovered the wooly gloves I wore were building up charge, I got some Lowepro photographers gloves and havent seen the problem since. It's also possible that the door sensor that tells it if the memory card is being removed is faulty or the door got a bang, this can cause the camera to interupt the writing of the file.