Hi,
Rather than write the record to the SD each time the sensor is read, you could collate the values, then only write the record once when the next button is pressed. This would remove the need to revise the .csv. If you're talking about a maximum of 10 readings each time this could be as easy as populating an array of values and writing those values out when the next button is pressed.
Cheers ! Geoff