Problem writing to SD card

Have you tried printing out your filenames to the serial monitor to see if it's doing what you want?