NA Treatment when writing the ts to a dat file