PARQUET-134 patch - Support file write mode