write end index in pbwtCheckPoint - fixes checkpoint bugs