implement write func in OssStorageFile class