xfstests: randholes: only allocate write buffer when needed