update the SimpleRecordWriter to write multiple records into one file