A note on a class of factorized p-groups