Read RFID tag ref from SD card and check match

  return result; 

  dataFile.close();

Don't you get a compiler warning because you have code that will never be reached?