update write.table