Imagine lining up the coins as so:
* * * * * * * * * *
Allocating them to different boxes amounts to placing three dividers between the boxes, where the group of coins between each divider and on the sides are placed in unique boxes.
* * * | * * | * * * * | *
(3, 2, 4, 1)
We have 9 choices for the dividers and three dividers, so the answer should be 9C3 (assuming we can't have empty boxes).
If we can have empty boxes, then the answer's slightly different (I'll edit in a sec).
Edit:
This time let the dots just be placeholders. We line up thirteen:
* * * * * * * * * * * * *
And then select three to be the dividers (13C3). The dots between the dividers then become coins and are placed in unique boxes.
| | * * * * * * * * * | *
(0, 0, 9, 1)