Write downloaded file to disk