[TODO]update test_write_chunk to support new version of WriteblockFunc