trying to data log to sd every millisecond and having problems

btw, turning the arduino off, will not close the SD cleanly.
Perhaps a button to close & stop - then show a LED when the SD is ready for removal.