PARQUET-104: Fix writing empty row group at the end of the file

At then end of a parquet file, it may writes an empty rowgroup. 
This happens when: numberOfRecords mod sizeOfRowGroup = 0