MATL, 18 bytes
Q:qYs3Z^t!sG=fX<Y)
This outputs the first result in lexicographical order.
Try it at MATL Online!MATL Online!
Explanation
Q % Implicitly input n. Add 1
: % Range (inclusive, 1-based): gives [1 2 ... n+1]
q % Subtract 1 (element-wise): gives [0 1 ... n]
Ys % Cumulative sum
3Z^ % Cartesian power with exponent 3. Gives a matrix where each row is a
% Cartesian tuple
t % Duplicate
!s % Sum of each row
G= % Does each entry equal the input?
f % Find indices that satisfy that condition
X< % Minimum
Y) % Use as row index into the Cartesian power matrix. Implicitly display