FIX: write() espera str, no float