He's writing a letter to his friend.
= He's writing (to his) friend.
注:write a letter to sb = write to sb 给某人写信