Laws of the iterated logarithm for a class of iterated processes