fileSize method now in writesuccessful