notes: convert write_notes_tree to object_id