fix bug, still cannot write large files
before fix hat long time