You must be new to this language. Sadly, English ran short of words several centuries ago, and quite a few words now have multiple meanings. There was even a shortage of food words, and caper, jam, noodle, carp, beef, stalk, sole, season and other words were forced to share their meanings with others – although often with a thing or action outside the food world.

"Truffle" faces a similar challenge, but it is forced to share itself with another object in the food world. There is good reason for this sharing, as the chocolate truffle, occasionally somewhat irregular in its roundness, when rolled in a dark, rich cocoa powder is thought to resemble a black truffle (the fungus). Very discerning people are able within a few minutes to tell the difference between the chocolate truffle and the fungus.

The fungus has laid claim to the name (in some form) since Classical antiquity; the chocolate since the 1920s, so the fungus wins.

We are not aware of people putting truffle shavings in chocolate truffles, but the food world is a pretty crazy place these days, and what will some chef or food manufacturer not do to get a little attention?