Create the write batch.