flushing log buffer solves write issue