I don't know how Nominatim works but I suspect it computes a straight-line/crow-flies distance to the nearest town. For Athersley, Royston is closer than Barnsley, so if that is how the "nearest town" is calculated, I'm not sure what can be done to resolve this.

Addressing all properties in Athersley would perhaps be one, rather exhaustive, way of doing so...