On the law of the iterated logarithm for weighted sums of