Arduino GPS and Accelerometer Data Problem

I think you've misunderstood what I'm suggesting.

Each time you write you're sending a certain number of bytes to the SD. You can know what this number is (either by coding such that it's a fixed/known quantity, or by calculating it somehow).

So on a write-by-write basis you can validate that the SD card writes the number of bytes you expect, and use that to toggle the LED.

This said, you probably need to validate the approach by messing with the SD card wiring and checking the library reacts in the way you expect. This is the approach I'd look into, but I don't know for sure it'll work in all circumstances. I suspect you'd be better off ensuring the wires don't come adrift than trying to flag up the error from the software domain.

As a side issue, if you get any problems with SD card startup or writes, check there are 10K pullups on signal leads and add a 100uF low ESR cap across the SD power lines close to/on the SD board. The SD can draw >100mA in spikes.
Well actually 10uF to 47uF would probably do but 100uF worked for me so I stopped there.