fixed insert bug (writing parent to disk now)