https://mandarapte.com/tutorials/error-updating-wordpress-installations-automatically-error-uploading-file-wordpress-blog-failed-write-file-disk-solution-errors/
Error while updating your WordPress Installations Automatically or Getting error while uploading file to WordPress blog "Failed to write file to disk.”, Here is a solution for this errors.