Made write_metadata_blob and write_branch_history_blob guarantee the superblock version.