I would give the SD-datafile the name YYYYMMDD.txt (e.g.20121221) so you do not need to write it in every entry of your log.
A quick glimpse of the code shows that you do a read of the temp sensors in an if statement and later you do a read to write in the datafile. This can result in minor differences.