Yes this song was written by Donovan.
As Mark says it was on "For the Little Ones" wich formed part of a double box set "Gift From a Flower to a Garden".
There was a cover version recorded by Bob Fox and Stu Luckley.
It was on one of their two albums that have been "Bulmerised", but they rerecorded it on Fellside recently.
love, john