It can't defrag files which are in use. To minimise the number of files in use, try booting in safe mode.
But really a bit of fragmentation doesn't matter much - I wouldn't worry about it.
In fact, a couple of time I known defragging to break systems, so I only do it now when really necessary.