Write and play audio from SD card

I tried it :

I have an audio file (31 KB) (around 2 sec) saved on the sd card. When I collect sensor data, the microcontroller creates a file "DATA00" and writes the sensor data to this file.
The audio plays just once (when the datapoint is above a value) and after playing once, the audio file gets corrupted and the data is not readable anymore.
The microcontroller writes data to the file "DATA00" every 30 ms.

I had an other question too. Can the sd card keep writing data to the DATA file while the audio is being played?
From what I noticed, its not able to do that.

Any suggestions to fix the issue?