... WHERE KB_ALLOCATED=0  AND FILE_SIZE>0

Oh, if you are also working with an HSM or HSM-like manager that can migrate files -- then you might have to add some additional tests...