add invoke initWrite at metho write of File