link: add WriteFile method.

BUG=none
TEST=make test; make lint

Change-Id: Idc18639ea4a1ed89d862462490435ef80457fe3c
1 file changed