make ParquetFileWriter throw IOException in invalid state case