hopefully writing segbase to segfile in truncate