changed memfill command; allocate buffer on disk write