Fix averaging problem of spatialDecompose_mpi.f90

This is a fix based on spatialDecompose.f90 of commit 28449

Samples with distance larger than half boxLength should NOT be
completely discarded. Instead, they should be counted for the
total number of frames to be averaged.