Write cycles material node output to image file
The File Output node is a compositor node, not a Cycles material node - so it will only output the results of the actual render, not that particular material.

To output the shader results to an image you need to look into unwrapping your mesh and baking the material to an image.