Samsung Galaxy J5 J500F Bricked - How to unbrick?
If you moved the /system file elsewhere, then your device is bricked (moving /system files to create space doesn't help as that space is not available to user for data)

Having done this without realising the implications, it is unlikely you would be able to flash stock ROM on your own. It's best you take it to service centre where it may be resurrected using ODIN /JTAG tool