GPS Logger not writing to SD Card

Why are you using Strings ?

To save the Longitude to the SD card file just do for example;

dataFile.print(gps.location.lat(),6);