Emerging Persistent Memories (PMs) are promised to revolutionize the storage systems by providing fast. persistent data access on the memory bus. Therefore, persistent memory file systems are developed to achieve high performance by exploiting the advanced features of PNIs. Unfortunately, the PMs have the problem of limited, write endurance. Furthermore, the existing space management strategies of persistent memory file systems usually ignore this problem, which can cause that the write operations concentrate on a few cells of PM. Then, the unbalanced writes can damage the underlying PMs quickly, which seriously damages the data reliability of the file systems. However, existing wear-leveling-aware space management techniques mainly-focus on improving the wear-leveling accuracy of PMs rather than reducing the overhead, which can seriously reduce the performance of persistent memory file systems. In this paper, we propose a Wear-Leveling-Aware Multi-Grained Allocator, called WMAlloc, to achieve the wear-leveling of PM while improving the performance for persistent memory tile systems. WMAlloc adopts multiple heap trees to manage the unused space of PM. and each heap tree represents an allocation granularity. Then, WMAlloc allocates less-worn required blocks from the heap tree for each allocation. We implement the proposed WMAlloc in Linux kernel based on NOVA, a typical persistent memory tile system. Compared with DWARM, the state-of-the-art and wear-lereling-aware space management technique, experimental results show that WMAlloc can achieve 1.52x lifetime of PM and 1.44x performance improvement on average.