Update server.rb

Changed parse_write_register_func to check address against holding_resisters array size.