PARQUET-82: Check page size is valid when writing.

this seems to be part of a different change?