update write token