Unless 'black' is being used in the sense of darkness, an absence of 'light' implying a lack of moral 'light' or goodness, so that the trees are not actively evil, but merely not 'good'.
If rings, places, and even the very fabric of Arda can be evil or contain evil, surely a tree can.