fsx: add support for writing constant instead of random data