update write log