ALAC : Check return value of of fwrite.

In the process change parameter of alac_encode() function from
int32_t to uint32_t.

Thanks to Richard Ash <richard@audacityteam.org> for the report.