Since I have written almost all ways for each combination, let me write the complete solution..
1,0,3: first 3! ways in which 1, 0 and 3 balls can be placed. Next these 3 balls will have to be selected in 4C3 ways. So Box 1-1, Box 2-0 and Box3 -3 will not be one way but 4C3 ways as the 3 in box 3 can be selected in 4C3 ways. Thus, total ways for (1,0,3) will be 3!*4C3 or 24.
1,1,2: Choosing the box with 2 balls can be in 3C1 or 3 ways. Next selecting/choosing 2 balls from 4 will be in 4C2 or 6 ways and then selecting one ball from the remaining two balls in 2C1 way and the remaining ball will go in the final box in 1C1, so .....3*4C2*2C1*1C1 = 3*6*2*1 = 36 ways
0,0,4: No unique values as all are in same box, but box can change in 3C1 ways, so 3 ways.
0,2,2: Choose boxes in 3!/2! or 3 ways. Then choose 2 balls in 4C2 ways and the remaining 2 will automatically come out in 1 way, so 3*4C2*2C2 = 3*6*1 or 18 ways.
Total: 24+36+3+18 = 81 ways or 3^4 ways