Ensure that we always write multiples-of-1024 byte blocks.