fixed printf _write function
adding assert_failed for st lib