gloss: _write takes a buffer of arbitrary length, not a C string

Removes the special NULL termination behavior for buffers in
the _write method that was being treated as the end of string.
Since _write takes an arbitrary length buffer, this eliminates
buffer overruns found in b/195166567.

Additionally, remove the BSS clearing since between execution
runs, newlib won't restart it's I/O routines appropriately
due to discrepencies between the bss and data segments.

Change-Id: Ib9bbe663b6bc87d6540d8ae66497974807878466
2 files changed