flush

Flush all pending docs to a new segment