change avls asyn write to syn write