Convert binary text into file

If it returns :ok, then the file write was a success. What’s the problem?