write_parquet_at_once function

write parquet file or dataset based on partition argument