Try removing this bit of code
// Every 100 block print a '.'
count++;
if (count == 100) {
Serial.print(".");
count = 0;
}
Also be sure that "The Audio file to store on the SD card must be in the .wav format with 44100 Hz, 16-bit stereo quality."
Also, did you ever get the audio functionality working before you started implementing everything else or did you just copy paste the example code into a project in the making?
I'm telling you from experience, test 1 functionality at a time, make sure it works, then implement it, make sure it works again, move on.