write: Add --buffer-tree option.