write-command: respect max batch size even if documents is small.