Initialize the segment header as the items are written. This isn't a great place to do it. Signed-off-by: Zach Brown <zab@versity.com>