Update tdWriteTable.R

fix bug when serializing data frame with only 1 time column